

import request from '@/base/request'
import router from '@/router';
import {ref,onUnmounted} from 'vue'

export default function(){
    

    const step=ref<number>(1)

    
    async function check() {
      const response=await request.get("/user/check")
      if(response.data.code===200){
        step.value=2;
      }else{
        router.push('/noPermission')
      }
    }


    


    return {step,check}
}